#include <header.h>
void func(int num){
	printf("i am fun\n");
	sleep(3);
}


int main(int argc, char *argv[]){
	struct sigaction act, old;
	memset(&act, 0, sizeof act);
	memset(&old, 0, sizeof old);

	act.sa_handler = func;

	sigset_t set;
	sigemptyset(&set);
	sigaddset(&set, 3);

	act.sa_mask = set;

	sigaction(2, &act, &old);
	

	while(1);
	return 0;
}

